//---------------------------------------------------------------------------


#pragma hdrstop

#include "GlobalVariables.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

// For MainFrom
unsigned char RXQueue[RXQUEUE_SIZE] = {0};
int RX_head = 0;
int RX_tail = 0;

// For SimComp
int DIP_mode = 0;
int RHeadPitch = 0;
int RHeadYaw = 0;
int RWaistRoll = 0;
int RWaistPitch = 0;
int RWaistYaw = 0;
int MotionDoing = 0;
int Azimuth = 0;

unsigned char MotionMode = 0;
float ContDis = 0;
float ContAngle = 0;
unsigned char HeadMode = 3;
int SHeadPitch = 512;
int SHeadYaw = 512;

// For SimWriteMotor
#include <windows.h>
//#include <time.h>
//#include <Mmsystem.h>
//#pragma comment(lib, "Winmm.lib")
